



AndFilter(PacketFilter* p1, PacketFilter* p2) {
	filters.push_back(p1);
	filters.push_back(p2);
}


void addFilter(PacketFilter * filter) {
	filters.push_back(filter);
}

bool accept(Packet * packet) {
	for (std::vector<PacketFilter*>::iterator it = filters.begin(); it != filters.end() it++) {
		if (!(*it)->accept(packet)) {
			return false;
		}
	}
	return true;
}


